package cn.zmwh.im.server.modules.message.controller;


import cn.zmwh.im.server.api.Result;
import cn.zmwh.im.server.modules.message.pojo.request.HistoryRequest;
import cn.zmwh.im.server.modules.message.service.MessageLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 群消息 前端控制器
 * </p>
 *
 * @author dmzmwh
 * @since 2025-06-19
 */
@Api(tags = "消息记录")
@RestController
@RequestMapping("/api/message")
public class MessageController {


    @Autowired
    private MessageLogService messageLogService;


    @GetMapping("/history")
    @ApiOperation(value = "历史消息重新推送")
    public Result history(HistoryRequest request) {
        return messageLogService.history(request);
    }
}

